package com.cskaoyan.vo.promotion;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @description:
 * @autyor:caicaicai
 */
@Data
public class WxCouponMylistCouponVo {

    /**
     * id : 30
     * name : fe
     * desc : sd
     * tag : sd
     * min : 0.00
     * discount : 0.00
     * startTime : 2021-04-11 18:14:13
     * endTime : 2021-04-11 18:14:13
     */

    private int id;
    private String name;
    private String desc;
    private String tag;
    private String min;
    private String discount;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    public WxCouponMylistCouponVo(int id, String name, String desc, String tag, String min, String discount, Date startTime, Date endTime) {
        this.id = id;
        this.name = name;
        this.desc = desc;
        this.tag = tag;
        this.min = min;
        this.discount = discount;
        this.startTime = startTime;
        this.endTime = endTime;
    }

    public WxCouponMylistCouponVo() {
    }
}
